all: client echoserver

client:client_src/client.cpp 
	g++ -std=c++11 -g -o client client_src/client.cpp 

echoserver:src/echoserver.cpp src/InetAddress.cpp src/Socket.cpp src/Epoll.cpp src/Channel.cpp src/EventLoop.cpp src/TcpServer.cpp src/Acceptor.cpp src/Connection.cpp src/Buffer.cpp src/EchoServer.cpp src/ThreadPool.cpp src/Timestamp.cpp src/easylogging++.cc
	g++ -std=c++11 -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -g -o echoserver src/echoserver.cpp src/InetAddress.cpp src/Socket.cpp src/Epoll.cpp src/Channel.cpp src/EventLoop.cpp src/TcpServer.cpp src/Acceptor.cpp src/Connection.cpp src/Buffer.cpp src/EchoServer.cpp src/ThreadPool.cpp src/Timestamp.cpp src/easylogging++.cc -lpthread -I./include

test:test_src/test.cpp
	g++ -std=c++11 -g -o test test_src/test.cpp